home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / moldyn / readme < prev   
Encoding:
Text File  |  1999-06-25  |  1.3 KB  |  40 lines  |  [TEXT/MPS ]

  1. :moldyn:readme
  2. June 25, 1999
  3.  
  4. by George G. Geller
  5. ggeller@cybercandidate.com
  6.  
  7. Molecular Dynamics (not!)
  8.  
  9. For the 1999 MacHack contest.
  10.  
  11. This hack demonstrates optimization of very simple image processing.
  12.  
  13. Caution:  >>>>> REQUIRES A G4 PROCESSOR <<<<<
  14.  
  15. *** Introduction:
  16.  
  17. A representation of an atom moves in a window in a scientifically accurate manner.  But it is a sort of
  18. disco atom, so it changes colors and leaves a path as it moves along its trajectory.
  19.  
  20. The computationally intensive part is fading the path as the atom goes along.  Moldyn can fade the
  21. path in three different ways:  1) Using SetCPixel for each pixel  2)  Directly modifying the data in
  22. the PixMap and 3) On G4 machines modify the PixMap using AltiVec instructions.
  23.  
  24. *** Operation:
  25.  
  26. Run moldyn on a G4 Macintosh.  Notice how slowly the atom moves.  The temperature is near absolute zero.
  27.  
  28. Hold down the option key to invoke direct manipulation of the PixMap.  Notice that the kinetic energy
  29. of the atom increases.
  30.  
  31. Hold down the option key and the shift key to invoke direct manipulation of the PixMap using AltiVec code.
  32. Notice that the kinetic energy of the atom increases even more.
  33.  
  34. *** Acknowlegements:
  35.  
  36. Moldyn would have not been been possible without help from Douglas Clarke.
  37.  
  38. Based on advanced Bob world technology.
  39.  
  40.